﻿using System.Collections.Generic;
using SuCasa.DataAccess;

namespace SuCasa.Infrastructure{
    public class MemberTypes{
        public static readonly MemberTypes Instance = new MemberTypes();
        readonly MemberRepository _memberRepository;
        MemberTypes(){
            _memberRepository = new MemberRepository(SuCasaContext.Instance);
        }
        public IEnumerable<MemberType> All{
            get{
                return Constants.UseFakes ? FakeDb.AllMemberTypes : _memberRepository.GetMemberTypes();
            }
        } 
    }
}